#ifndef MESSAGE_DIALOG_H
#define MESSAGE_DIALOG_H

#include <string>
#include <gtk/gtk.h>
#include <goocanvas.h>

#include <viewConf.h>

namespace View {

  class MessageDialog
  {
    GtkWidget *window;
    GtkWidget *canvas;
    GooCanvasItem *root;

    GtkWidget *scrollWindow;
    GtkTextBuffer *buffer;
    GtkTextIter iter;
    GtkWidget *textView;
    GtkWidget *confirmButton;

    static MessageDialog *instance;
    MessageDialog();
    bool ClearText();
  public:
    static MessageDialog *GetMessageDialog();
    ~MessageDialog();

    bool SetText(std::string newText);
    bool SetTitle(std::string newTitle);
    bool Show();
    bool Hide();
  };

}

#endif
